<?php


namespace app\api\model;
use think\Model;

class QrCode extends Model
{
    protected $name = 'qrcode';

    public function is_exists($uuid)
    {
        $where[]=['uuid','=',$uuid];
        $where[]=['expire_time','>=',date('Y-m-d H:i:s')];
        $where[]=['status','=',0];
        $count=self::where($where)->count();
        return $count;
    }
}